<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Dokumentacja pliku one_wire.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja pliku one_wire.c</h1><h3>(r58/r57)</h3>
<p>Obsługa interfejsu 1-wire.  
<a href="#_details">Więcej...</a></p>
<code>#include &quot;<a class="el" href="aquamat_8h_source.html">aquamat.h</a>&quot;</code><br/>
<code>#include &lt;util/delay.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="one__wire_8h_source.html">one_wire.h</a>&quot;</code><br/>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Funkcje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#ac6a21039977d29da711c6b094c87bf3e">onewire_init</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a2ad618d6447787d46f1018d1b304d623">onewire_present</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a10d8164cde368976c5baa12fdf1cec38">onewire_write_slot</a> (uint8_t bit)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a1582cd8808dc41096206c5980a326ef1">onewire_read_slot</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a784929df5ad11e42c26a22bba5f5ea56">onewire_write_byte</a> (uint8_t byte)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#adccefe5d31346e88a520d897b69ccb1c">onewire_read_byte</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a636dace40cc8433794faebba051fc7ae">onewire_read_rom</a> (uint8_t *buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a776c48d301c192526d377821715baaf4">onewire_skip_rom</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a7eccf2895b0f9f9b88e7bdc206d5a7b0">onewire_match_rom</a> (uint8_t *buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a7ac2292392fef0cb3e0c2a0c715c92c2">onewire_crc8</a> (uint8_t *buffer, uint8_t len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#af22fe1a48a246cf1ee25f2355fbd14ce">onewire_search_first</a> (uint8_t *buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a7fb17d1a58d7b14039d5dc90cd4209cd">onewire_search_next</a> (uint8_t *buffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#acdd3a7b6bb187fcb044f15b11f6f4c9c">onewire_search</a> (uint8_t *buffer)</td></tr>
<tr><td colspan="2"><h2>Zmienne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#a04dfe244d07341b97914ef12f60a32b5">last_discrepency</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="one__wire_8c.html#ab430dba773e1904461185c68152b9970">last_device_flag</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<p>Obsługa interfejsu 1-wire. </p>
<hr/><h2>Dokumentacja funkcji</h2>
<a class="anchor" id="a7ac2292392fef0cb3e0c2a0c715c92c2"></a><!-- doxytag: member="one_wire.c::onewire_crc8" ref="a7ac2292392fef0cb3e0c2a0c715c92c2" args="(uint8_t *buffer, uint8_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_crc8 </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>len</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac6a21039977d29da711c6b094c87bf3e"></a><!-- doxytag: member="one_wire.c::onewire_init" ref="ac6a21039977d29da711c6b094c87bf3e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onewire_init </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7eccf2895b0f9f9b88e7bdc206d5a7b0"></a><!-- doxytag: member="one_wire.c::onewire_match_rom" ref="a7eccf2895b0f9f9b88e7bdc206d5a7b0" args="(uint8_t *buffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onewire_match_rom </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2ad618d6447787d46f1018d1b304d623"></a><!-- doxytag: member="one_wire.c::onewire_present" ref="a2ad618d6447787d46f1018d1b304d623" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_present </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="adccefe5d31346e88a520d897b69ccb1c"></a><!-- doxytag: member="one_wire.c::onewire_read_byte" ref="adccefe5d31346e88a520d897b69ccb1c" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_read_byte </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a636dace40cc8433794faebba051fc7ae"></a><!-- doxytag: member="one_wire.c::onewire_read_rom" ref="a636dace40cc8433794faebba051fc7ae" args="(uint8_t *buffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onewire_read_rom </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1582cd8808dc41096206c5980a326ef1"></a><!-- doxytag: member="one_wire.c::onewire_read_slot" ref="a1582cd8808dc41096206c5980a326ef1" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_read_slot </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acdd3a7b6bb187fcb044f15b11f6f4c9c"></a><!-- doxytag: member="one_wire.c::onewire_search" ref="acdd3a7b6bb187fcb044f15b11f6f4c9c" args="(uint8_t *buffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_search </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af22fe1a48a246cf1ee25f2355fbd14ce"></a><!-- doxytag: member="one_wire.c::onewire_search_first" ref="af22fe1a48a246cf1ee25f2355fbd14ce" args="(uint8_t *buffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_search_first </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7fb17d1a58d7b14039d5dc90cd4209cd"></a><!-- doxytag: member="one_wire.c::onewire_search_next" ref="a7fb17d1a58d7b14039d5dc90cd4209cd" args="(uint8_t *buffer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t onewire_search_next </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>buffer</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a776c48d301c192526d377821715baaf4"></a><!-- doxytag: member="one_wire.c::onewire_skip_rom" ref="a776c48d301c192526d377821715baaf4" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onewire_skip_rom </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a784929df5ad11e42c26a22bba5f5ea56"></a><!-- doxytag: member="one_wire.c::onewire_write_byte" ref="a784929df5ad11e42c26a22bba5f5ea56" args="(uint8_t byte)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onewire_write_byte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>byte</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a10d8164cde368976c5baa12fdf1cec38"></a><!-- doxytag: member="one_wire.c::onewire_write_slot" ref="a10d8164cde368976c5baa12fdf1cec38" args="(uint8_t bit)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void onewire_write_slot </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>bit</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Dokumentacja zmiennych</h2>
<a class="anchor" id="ab430dba773e1904461185c68152b9970"></a><!-- doxytag: member="one_wire.c::last_device_flag" ref="ab430dba773e1904461185c68152b9970" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="one__wire_8h.html#ab430dba773e1904461185c68152b9970">last_device_flag</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a04dfe244d07341b97914ef12f60a32b5"></a><!-- doxytag: member="one_wire.c::last_discrepency" ref="a04dfe244d07341b97914ef12f60a32b5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="one__wire_8h.html#a04dfe244d07341b97914ef12f60a32b5">last_discrepency</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
</div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
